<?php 
// Lay cac thong so cau hinh chung
include "../../app_global.php";

// Lay cac hang so dung chung
include "../../const.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../../isa-lib/isa-function/isa_public_function.php";
require_once("../../isa-lib/nusoap/nusoap.php");
include "../../isa-lib/isa-function/prax.php";
include "../../list/recordtype/handler_function.php";
include "handler_function.php";
include "../approving/handler_function.php";
// Kiem tra NSD da login hay qua timeout chua
include "../../test_login.php";
include "../../connect.php";
include "../../connect_ado.php";
// Khoi tao cac bien SESSION chua quyen modul, function cua NSD
include "../../init_session.php";

// Lay cac thong so cau hinh rieng cho chuc nang nay
include "../../onegate_function.php";
// nieuvv--101108--lay danh sach cac loai ho so co cau hinh trong danh muc cong viec dac biet

include "../../qry_all_spec_worktype.php";	
include "../../record/spec_work/onegate_function_spec_work.php";
//the-end-nieuvv-101108---
include_once("../../isa-lib/isa-function/class_xslt.php");//Khai bao su dung cac ham dung chung 
include "../receive/const.php";
include "app_local.php";
include "const.php";
include_once $FOLDER_DEVEDIT_CLASS;
include_once ("../../4s/config/record/handle/config.php");
// Lay cac hang so cua chuc nang nay
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../record-lib/qry_all_recordtype_by_staff.php";//Leav_21/05/2008 them
	include "../../dsp_header.php";
}else{
	include "../../dsp_modal_dialog_header.php";
}
?>
<script src="../../isa-lib/isa-js/isa_util.js" ></script>
<script src="../receive/js_record.js" ></script>
<script src="js_record_handle.js" ></script>
<script src="../approving/js_record_approving.js" ></script>
<script src="../js-record/js_technology_ajax.js" ></script><?php
//echo $fuseaction.'<br/>' ;
switch($fuseaction) {
	//nieuvv--111108--danh sach ho so cong viec dac biet
	case "DISPLAY_ALL_RECORD_SPEC_WORK";
		$v_type_spec_work = "";
		if(isset($_REQUEST['type_spec_dsp']))
		{
			$v_type_spec_work = $_REQUEST['type_spec_dsp'];
		}
		if ($v_type_spec_work == "")
		{
			if(isset($_REQUEST['hdn_spec_worktype']))
			{
				$v_type_spec_work = $_REQUEST['hdn_spec_worktype'];
			}
		}
		
		for($j = 0 ; $j < $v_cout; $j ++)
		{
			for($i = 0 ; $i < $v_count_spec_worktype ; $i ++)
			{					
				if($arr_all_spec_worktype[$i]['C_UPDATE_METHOD_START'] == 'LEFT_MODULE_UPDATE_HANDLE'&& $arr_all_spec_worktype[$i]['FK_WORKTYPE_START'] == $arr_list[$j][0] && $arr_all_spec_worktype[$i]['PK_SPEC_WORKTYPE'] == $v_type_spec_work)
				{
				
					$v_name_spec_worktype = _getname($arr_list,$arr_all_spec_worktype[$i]['FK_WORKTYPE_START']);
					break;
				}
			}
		}
		$v_detail_status_compare = " And C_DETAIL_STATUS<>20 ";
		$v_status_list = "DANG_THU_LY";
		$v_worktype ="THU_LY";
		$v_title = RECORD_LIST_LABEL." ".$v_name_spec_worktype;
		//$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record_nieuvv.php";
		include "../record-lib/dsp_all_record_nieuvv.php";
		break;
	case "UPDATE_RECORD_SPEC";
		include "act_update_record_spec_nieuvv.php";
	//the-end-nieuvv--111108---
	case "DISPLAY_KYNHANTHULY_RECORD";
		include "qry_single_record.php";
		include "qry_all_worktype.php";
		include "qry_single_record_work.php";
		include "dsp_single_record_work.php";
		break;
	
	case "DISPLAY_ALL_HANDLING_RECORD";
		$v_detail_status_compare = " And C_DETAIL_STATUS <> 20 And C_DETAIL_STATUS <> 70 And C_DETAIL_STATUS <> 24";
		$v_detail_status_compare=$v_detail_status_compare." and C_DETAIL_STATUS <> 25 and C_DETAIL_STATUS <> 26 and C_DETAIL_STATUS <> 27 and C_DETAIL_STATUS <> 28 and C_DETAIL_STATUS <> 29 and C_DETAIL_STATUS <> 34 and C_DETAIL_STATUS <> 109";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK";
		$v_title = CONST_RECORD_HANDLING_TITLE;
		$v_worktype = "THU_LY";
		$v_show_date = false;
		$v_receive_date = "";
		$v_xml_file_list = "danh_sach_ho_so_dang_giai_quyet.xml";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_ALL_RECORD_FOR_APPROVING";
		//C_DETAIL_STATUS = 23 : Lanh dao phe duyet lan thu nhat
		//C_DETAIL_STATUS = 30 or 40 : Lanh dao phe duyet lan thu hai
		//$v_detail_status_compare = " And (C_DETAIL_STATUS = 23 or C_DETAIL_STATUS = 30 or C_DETAIL_STATUS = 34)";// Or C_DETAIL_STATUS = 40) ";
		$v_detail_status_compare =""; //Leav_update:25092008
		$v_status_list = "TRINH_KY";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK";
		$v_title = CONST_RECORD_APPROVING_HANDLE_TITLE;
		$v_worktype = "TRINH_KY";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_ALL_RECORD_APPROVED";
		//vunh added : kiem tra dieu kien thu tuc 009 lay ca ho so luu de cap nhat noi dung giay phep
		$update_approved_license_record_type_array = explode(",", UPDATE_APPROVED_LICENSE_RECORD_TYPE);	
		$is_can_update_approved_license_record = in_array($_SESSION['onegate_current_recordtype'], $update_approved_license_record_type_array);
		if (!$is_can_update_approved_license_record) {
			$v_detail_status_compare = " And C_DETAIL_STATUS <> 51 ";
		} else {
			$v_detail_status_compare = "";
			if (!isset($_REQUEST['hdn_record_number_page']) || $_REQUEST['hdn_record_number_page'] == '') {
				$_REQUEST['hdn_record_number_page'] = 50;
			}
		}
		$v_status_list = "CAP_PHEP,TU_CHOI";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK";
		$v_title = CONST_RECORD_APPROVED_HANDLE_TITLE;
		$v_worktype = "CAP_PHEP";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_ALL_RECORD_TRANFERED";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 70 ";
		$v_status_list = "DANG_THU_LY,TRINH_KY";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK";
		$v_title = CONST_RECORD_TRANFERED_HANDLE_TITLE;
		$v_worktype = "CHUYEN_HOSO_CQTQ";
		$v_show_date = false;
		$v_receive_date = "";
		//Neu dang o muc "Ho so da chuyen co quan co tham quyen giai quyet" thi khong cho hien thi 
		//option "Chuyen co quan co tham quyen giai quyet" va "Trinh lanh dao ky giay phep"
		$v_tranfered = 1;
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_ALL_HANDLE_RECORD_FOR_UPDATE_STATUS";
		include "qry_all_selected_id_record.php";
		include "dsp_all_all_handle_record_for_update_status_vunh.php";
		break;
	case "DISPLAY_SINGLE_HANDLE_RECORD_FOR_UPDATE_STATUS";
		include "../record-lib/qry_single_record.php";
		include "dsp_single_handle_record_for_update_status_vunh.php";
		break;
	case "UPDATE_RECORD_STATUS";
		include "act_update_record_status_vunh.php";
		break;
	case "DISPLAY_ALL_RECORD_WORK";
		//Leav :
		$v_size=$_REQUEST['hdn_v_size'];
		//Leav_end
		include "../record-lib/qry_single_record.php";
		include "qry_all_record_work.php";
		include "dsp_all_record_work.php";
		break;
	case "DISPLAY_SINGLE_RECORD_WORK";
		include "../record-lib/qry_single_record.php";
		include "qry_all_worktype.php";
		include "qry_single_record_work.php";
		include "dsp_single_record_work.php";
		break;
		// KienLT 14/08/2008 Cập nhập tiến độ của nhiều hồ sơ
	case "DISPLAY_SINGLE_RECORD_WORK_KIEN";
		include "../record-lib/qry_all_record_check.php";
		include "qry_all_worktype.php";
		include "qry_single_record_work.php";
		include "dsp_all_reccord_check.php";
		break;
		// day la ham dung de update cac record cua tien do giai quyet.
	case "UPDATE_RECORD_LIST_CHECK";
		$arr_record_list=$_REQUEST['hdn_record_work_kien'];
		include "act_update_record_list_checked.php";
		break;
		// End KienLT 14/08/2008 Cập nhập tiến độ của nhiều hồ sơ
	case "DELETE_RECORD_WORK";
		include "act_delete_record_work.php"; 
		break;
	case "UPDATE_RECORD_WORK";
		include "act_update_record_work.php";
		break;
	case "DISPLAY_ALL_RECORD_DOC";
		include "../record-lib/qry_single_record.php";
		include "qry_all_record_doc.php";
		include "dsp_all_record_doc.php";
		break;
	case "DISPLAY_SINGLE_RECORD_DOC";
		include "../record-lib/qry_single_record.php";
		include "qry_single_record_doc.php";
		include "dsp_single_record_doc.php";
		break;
	case "UPDATE_RECORD_DOC";
		include "act_update_record_doc.php";
		break;
	case "DELETE_RECORD_DOC";
		include "act_delete_record_doc.php"; 
		break;
	case "DISPLAY_SINGLE_IDEA";
		include "../record-lib/qry_single_record.php";
		include "qry_single_idea.php";
		include "dsp_single_idea.php";
		break;
	case "DISPLAY_ALL_IDEA";
		include "../record-lib/qry_single_record.php";
		include "qry_all_idea.php";
		include "dsp_all_idea.php";
		break;
	case "DELETE_IDEA";
		include "act_delete_idea.php"; 
		break;
	case "UPDATE_IDEA";
		include "act_update_idea.php";
		break;
	case "DISPLAY_SINGLE_LICENSE";		
		include "qry_single_license.php";
		include "dsp_single_license.php";
		break;
	case "DISPLAY_MULTIPLE_LICENSE";
		include "qry_all_selected_id_record.php";
		include "dsp_multiple_license.php";
		break;
	case "UPDATE_LICENSE";
		include "act_update_license.php";
		break;
	case "UPDATE_MULTIPLE_LICENSE";
		include "act_update_multiple_license.php";
		break;
	case "PRINT_LICENSE";
		include "../record-lib/qry_single_record.php";
		include "dsp_single_license_for_printing.php";
		break;
	case "PRINT_NOTIFY_TAX";
		include "qry_single_notify_tax_content.php";
		include "dsp_single_notify_tax_for_printing.php";
		break;
	case "PRINT_NOTIFY_PUBNISH";
		include "qry_single_notify_punish_content.php";
		include "dsp_single_notify_pubnish_for_printing.php";
		break;
	case "PRINT_RECORD_TO_SUBMIT";
		include "../record-lib/qry_single_record.php";
		include "dsp_single_record_to_submit_for_printing.php";
		break;	///////////////////////////////////////////////////////
	//Cac fuseaction ben phan receive
	//********************************************************************
	//	fuseaction thuc thi khi NSD muon phan cong can bo thu ly chinh
	case "DISPLAY_ALL_SHARING_RECORD";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 10 ";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_SHARING_TITLE;
		$v_worktype = "PHAN_CONG";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff_vunh.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_ALL_SHARING_RECORD_CHANGLE";
		$v_detail_status_compare = "112,11,21,31";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_title = CONST_RECORD_SHARING_CHANGLE_TITLE;
		$v_worktype = "THAY_DOI_NGUOI_THU_LY";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff_vunh.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_SHARING_RECORD";
		include "qry_all_selected_id_record.php";
		include "qry_single_recordtype.php";		
		include "../approving/dsp_sharing_record.php";
		//echo $v_worktype;
		break;
	case "DISPLAY_ALL_STAFF_BY_UNIT";
		include "../approving/dsp_all_staff_by_unit.php";
		break;
	case "UPDATE_SHARING_RECORD";
		include "../approving/act_update_sharing_record.php";
		break;	
	
	//************************NgocNTM************************************//
	//Cac truong hop cua ho so tranh chap
	case "DISPLAY_ALL_RECORD_FOR_DISPUTE";
		$v_detail_status_compare = "";
		$v_status_list = "TRINH_KY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD_DISPUTE";
		
		$v_worktype = "TRINH_KY";
		$v_show_date = false;
		$v_receive_date = "";
		$v_show_link_result=true;
		$v_xml_file_list = "danh_sach_ho_so_tranh_chap.xml";
		include "../record-lib/qry_all_record_conflict.php";
		include "../record-lib/dsp_all_record_dispute.php";
		break;
	case "DISPLAY_SINGLE_RECORD_DISPUTE";
		$_IS_APPROVING=false;
		include "../record-lib/qry_all_record_conflict.php";
		include "../record-lib/qry_single_record_dispute.php";
		include "../record-lib/dsp_single_record_dispute.php";
		//include "../record-lib/dsp_single_record.php";
		break;
	case "UPDATE_RECORD_DISPUTE";
		include "../approving/act_update_record_vunh.php";
		include "../approving/act_update_dispute.php"; // trang luu vào T_ONEGATE_CONFLICTRECORD
		
		break;
	case "DELETE_RECORD_DISPUTE";
		include "../approving/act_delete_record_dispute.php"; 
		break;
	case "DISPLAY_ALL_DISPUTE_RECORD_FOR_UPDATE_STATUS";
		$_IS_APPROVING=false;
		include "../approving/qry_all_status_record_dispute.php";
		include "../approving/dsp_all_status_record_for_update_dispute.php";
		
		break;
	case "UPDATE_RECORD_STATUS_DISPUTE";
		include "../approving/act_update_status_dispute_detail.php"; // trang cap nhat tinh trang vào T_ONEGATE_CONFLICTRECORD	
		break;
		
	//**************************End**********************************//
	case "DISPLAY_ALL_RECORD_FOR_SUPPLYMENT";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 20 ";
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD_SUPPLYMENT";
		$v_title = CONST_RECORD_RECEIVE_SUPPLYMENT_TITLE;
		$v_worktype = "NHAN_HO_SO_BO_SUNG";
		$v_show_date = false;
		$v_receive_date = "";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	case "DISPLAY_SINGLE_RECORD";
		include "../record-lib/qry_single_record.php";
		include "../record-lib/dsp_single_record.php";
		break;
	case "DISPLAY_SINGLE_RECORD_CONTENT";
		$v_title = CONST_RECORD_CONTENT_TITLE;
		include "../record-lib/qry_single_record.php";
		include "../record-lib/dsp_single_record.php";
		break;
	case "DISPLAY_SINGLE_RECORD_SUPPLYMENT";
		$v_title = CONST_RECORD_SUPPLYMENT_UPDATE_TITLE;
		include "../record-lib/qry_single_record.php";
		include "../record-lib/dsp_single_record.php";
		break;
	
	case "DISPLAY_ALL_RECORD_WORK_VUNH";
		$v_size=$_REQUEST['hdn_v_size'];
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK";
		include "../record-lib/qry_single_record.php";
		include "qry_all_record_work.php";
		include "dsp_all_record_work.php";
	break;
	///Leav :15/05/2008
	//(1)-Man Hinh Can bo THU LY ra thong bao THUE hoac PHAT
	case "DISPLAY_NOTIFY";
		$v_title = CONST_RECORD_RECEIVE_NOTIFY_TAX_AND_PHAT;
		include "../record-lib/qry_single_record.php";
		include "qry_all_worktype.php";
		include "qry_single_record_work.php";
		include "qry_all_notify.php";
		include "dsp_single_notify.php";
		break;
	//(2)-Day la ham dung de update cac record khi dc thong bao THUE
	case "UPDATE_RECORD_NOTIFY_TAX";
		$v_request_id_record=$_REQUEST['hdn_record_id_list'];
		$v_radio_leader=$_REQUEST['rad_status'];
		include "act_update_record_work_tax_leav.php";
		break;
	//(3)-Hien thi DANH SACH CAC HS DA THONG BAO PHAT
	case "DISPLAY_ALL_RECORD_THONG_BAO_PHAT";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 25 ";
		$v_status_list = "DANG_THU_LY,TRINH_KY";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK_LEAV_PHAT";
		$v_title = CONST_RECORD_PHAT_TITLE;
		$v_worktype = "DANH_SACH_HS_THONG_BAO_PHAT";
		$v_show_date = false;
		$v_receive_date = "";
		$v_tranfered = 1;
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	//(3)-Hien thi DANH SACH CAC HS DA THONG BAO THUE
	case "DISPLAY_ALL_RECORD_THONG_BAO_THUE";
		$v_detail_status_compare = " And C_DETAIL_STATUS = 24 ";
		$v_status_list = "DANG_THU_LY,TRINH_KY";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK_LEAV_THUE";
		$v_title = CONST_RECORD_THUE_TITLE;
		$v_worktype = "DANH_SACH_HS_THONG_BAO_THUE";
		$v_show_date = false;
		$v_receive_date = "";
		$v_tranfered = 1;
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
		break;
	//(4)
	case "DISPLAY_ALL_RECORD_WORK_LEAV_THUE";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK";
		$_work_leav="1000";
		include "../record-lib/qry_single_record.php";
		include "qry_all_record_work.php";
		include "dsp_all_record_work.php";
		break;
	case "DISPLAY_ALL_RECORD_WORK_LEAV_PHAT";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK";
		$_work_leav="1001";
		include "../record-lib/qry_single_record.php";
		include "qry_all_record_work.php";
		include "dsp_all_record_work.php";
		break;
	//Begin_update_23/05/2008 :
		//Noi dung thong bao PHAT va THUE
		//update_29/05/2008_begin
	case "DISPLAY_SINGLE_NOTIFY_PUNISH_CONTENT";
		include "qry_single_notify_punish_content.php";
		include "dsp_single_notify_punish_content.php";
		break;
		//update_29/05/2008_end
	case "DISPLAY_SINGLE_NOTIFY_TAX_CONTENT";
		include "qry_single_notify_tax_content.php";
		include "dsp_single_notify_tax_content.php";
		break;
		//update_28/05/2008_begin
	case "UPDATE_NOTIFY_TAX_CONTENT";
		include "qry_single_notify_tax_content.php";
		include "act_update_record_work_tax_content_27_05_08.php";
		include "qry_single_notify_tax_content.php";
		include "act_update_notify_tax_content.php";
		break;
		//update_28/05/2008_end	
		
	//update_begin_24/05/2008
	case "UPDATE_NOTIFY_PUNISH_CONTENT";
		include "qry_single_notify_punish_content.php";
		include "act_update_record_work_punish_content_29_05_08.php";
		include "qry_single_notify_punish_content.php";
		include "act_update_notify_punish_content.php";
		break;
	//update_end_24/05/2008
	//End_update_23/05/2008
	///Leav 
	//////////////////////////////////////////////////////
	
	//DatCQ 04/06/2008 Start=========
	case "DISPLAY_DOCUMENT_INCLUDE";
		include "../record-lib/qry_single_record.php";
		include "dsp_document_include.php";
		break;	
	case "UPDATE_RECORD";
		include "../handle/act_update_document_include.php";
		break;
	//End		

	//---------------------------------------------------------------
	//DatCQ: Ky Nhan Ho So Giay Thu Ly Dang Thu Ly
	case "DISPLAY_SIGN_RECEIPT_RECORD_NHSG_TL_HSDTL";
		$v_result = _CONST_NHSG_TL_HSDTL;
		$v_worktype = "NHSG_TL_HSDTL";
		$v_title = CONST_NAME_SIGN_RECEIPT_TITLE_NHSG_TL_HSDTL;
		include "../record-lib/qry_single_record_sign_receipt.php";
		include "qry_single_recordtype.php";
		include "../receive/dsp_sign_receipt_record.php";
		break;		
	//DatCQ: Ky Nhan Ho So Giay Thu Ly Thong Bao Phat
	case "DISPLAY_SIGN_RECEIPT_RECORD_NHSG_TL_TBP";
		$v_result = _CONST_NHSG_TL_TBP;
		$v_worktype = "NHSG_TL_TBP";
		$v_title = CONST_NAME_SIGN_RECEIPT_TITLE_NHSG_TL_TBP;
		include "../record-lib/qry_single_record_sign_receipt.php";
		include "qry_single_recordtype.php";
		include "../receive/dsp_sign_receipt_record.php";
		break;		
	//DatCQ: Ky Nhan Ho So Giay Thu Ly Thong Bao Thue
	case "DISPLAY_SIGN_RECEIPT_RECORD_NHSG_TL_TBT";
		$v_result = _CONST_NHSG_TL_TBT;
		$v_worktype = "NHSG_TL_TBT";
		$v_title = CONST_NAME_SIGN_RECEIPT_TITLE_NHSG_TL_TBT;
		include "../record-lib/qry_single_record_sign_receipt.php";
		include "qry_single_recordtype.php";
		include "../receive/dsp_sign_receipt_record.php";
		break;		
	//DatCQ: Ky Nhan Ho So Giay Ho So Da Giai Quyet
	case "DISPLAY_SIGN_RECEIPT_RECORD_NHSG_TL_HSDGQ";
		$v_result = _CONST_NHSG_TL_HSDGQ;
		$v_worktype = "NHSG_TL_HSDGQ";
		$v_title = CONST_NAME_SIGN_RECEIPT_TITLE_NHSG_TL_HSDGQ;
		include "../record-lib/qry_single_record_sign_receipt.php";
		include "qry_single_recordtype.php";
		include "../receive/dsp_sign_receipt_record.php";
		break;		
	//DatCQ: Ky Nhan Ho So Giay Ho So Da Chuyen Cap Co Tham Quyen Giai Quyet
	case "DISPLAY_SIGN_RECEIPT_RECORD_NHSG_TL_HSDCC";
		$v_result = _CONST_NHSG_TL_HSDCC;
		$v_worktype = "NHSG_TL_HSDCC";
		$v_title = CONST_NAME_SIGN_RECEIPT_TITLE_NHSG_TL_HSDCC;
		include "../record-lib/qry_single_record_sign_receipt.php";
		include "qry_single_recordtype.php";
		include "../receive/dsp_sign_receipt_record.php";
		break;						
	case "UPDATE_SIGN_RECEIPT_RECORD";
		include "../receive/act_update_sign_receipt_record.php";
		break;
	case "DISPLAY_RECORD_HANDOVER_TRANH_CHAP";
		$v_title=CONST_LIST_CONFLICTRECORD;
		$v_xml_file_list='danh_sach_ho_so_tranh_chap.xml';
		$v_fuseaction_onclick = "DISPLAY_SINGLE_RECORD";
		$v_worktype = "TRANH_CHAP";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../receive/qry_all_record_tranh_chap.php";
		include "../record-lib/dsp_single_record_handover_tranh_chap.php";
		break;
	
	default:
		$v_detail_status_compare = " And C_DETAIL_STATUS <> 20 And C_DETAIL_STATUS <> 70 And C_DETAIL_STATUS <> 24";
		$v_detail_status_compare=$v_detail_status_compare." and C_DETAIL_STATUS <> 25 and C_DETAIL_STATUS <> 26 and C_DETAIL_STATUS <> 27 and C_DETAIL_STATUS <> 28 and C_DETAIL_STATUS <> 29 and C_DETAIL_STATUS <> 34 and C_DETAIL_STATUS <> 109";
		
		$v_status_list = "DANG_THU_LY";
		$v_fuseaction_onclick = "DISPLAY_ALL_RECORD_WORK";
		$v_title = CONST_RECORD_HANDLING_TITLE;
		$v_worktype = "THU_LY";
		$v_show_date = false;
		$v_receive_date = "";
		$v_xml_file_list = "danh_sach_ho_so_dang_giai_quyet.xml";
		include "../record-lib/qry_all_recordtype_by_staff.php";
		include "../record-lib/qry_all_record.php";
		include "../record-lib/dsp_all_record.php";
}
include "../../disconnect.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_footer.php";
}else{
	include "../../dsp_modal_dialog_footer.php";
}?>
